import request from '@/utils/request'

// 软件管理
export function softAdd(data) {
  return request({
    url: '/soft',
    method: 'post',
    data
  }).then(res => {
    return res
  })
}

export function softDel(data) {
  return request({
    url: '/soft',
    method: 'delete',
    params: data
  }).then(res => {
    return res
  })
}
export function softPut(data) {
  return request({
    url: '/soft',
    method: 'put',
    data
  }).then(res => {
    return res
  })
}
export function getList(data) {
  return request({
    url: '/soft/page',
    method: 'post',
    data
  }).then(res => {
    return res
  })
}

// 软件类型
export function softTypeAdd(data) {
  return request({
    url: '/soft/type',
    method: 'post',
    data
  }).then(res => {
    return res
  })
}

export function softTypeDel(data) {
  return request({
    url: '/soft/type',
    method: 'delete',
    params: data
  }).then(res => {
    return res
  })
}
export function softTypePut(data) {
  return request({
    url: '/soft/type',
    method: 'put',
    data
  }).then(res => {
    return res
  })
}
export function softTypeList(data) {
  return request({
    url: '/soft/type/page',
    method: 'post',
    data
  }).then(res => {
    return res
  })
}
